﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopShopPositionData : BaseObject
    {
        //begin
        public TopShopPositionData(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _ShopPositionId;
        [Size(SizeAttribute.Unlimited)]
        public string ShopPositionId
        {
            get
            {
                return _ShopPositionId;
            }
            set
            {
                SetPropertyValue("ShopPositionId", ref _ShopPositionId, value);
            }
        }
        private string _ItemId;
        [Size(SizeAttribute.Unlimited)]
        public string ItemId
        {
            get
            {
                return _ItemId;
            }
            set
            {
                SetPropertyValue("ItemId", ref _ItemId, value);
            }
        }
        private string _SellerId;
        [Size(SizeAttribute.Unlimited)]
        public string SellerId
        {
            get
            {
                return _SellerId;
            }
            set
            {
                SetPropertyValue("SellerId", ref _SellerId, value);
            }
        }
        private long _X;
        public long X
        {
            get
            {
                return _X;
            }
            set
            {
                SetPropertyValue("X", ref _X, value);
            }
        }
        private long _Y;
        public long Y
        {
            get
            {
                return _Y;
            }
            set
            {
                SetPropertyValue("Y", ref _Y, value);
            }
        }
        private string _StoreName;
        [Size(SizeAttribute.Unlimited)]
        public string StoreName
        {
            get
            {
                return _StoreName;
            }
            set
            {
                SetPropertyValue("StoreName", ref _StoreName, value);
            }
        }
        private string _Address;
        [Size(SizeAttribute.Unlimited)]
        public string Address
        {
            get
            {
                return _Address;
            }
            set
            {
                SetPropertyValue("Address", ref _Address, value);
            }
        }
        private string _Phone;
        [Size(SizeAttribute.Unlimited)]
        public string Phone
        {
            get
            {
                return _Phone;
            }
            set
            {
                SetPropertyValue("Phone", ref _Phone, value);
            }
        }
        private string _City;
        [Size(SizeAttribute.Unlimited)]
        public string City
        {
            get
            {
                return _City;
            }
            set
            {
                SetPropertyValue("City", ref _City, value);
            }
        }
        private string _Traffic;
        [Size(SizeAttribute.Unlimited)]
        public string Traffic
        {
            get
            {
                return _Traffic;
            }
            set
            {
                SetPropertyValue("Traffic", ref _Traffic, value);
            }
        }
        private TopItemData _ItemData;
        [Association("ItemDataShopPositionList", typeof(TopItemData))]
        public TopItemData ItemData
        {
            get
            {
                return _ItemData;
            }
            set
            {
                SetPropertyValue("ItemData", ref _ItemData, value);
            }
        }
        //end

    }
}
